<!DOCTYPE html>
<html lang="en">

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>慕课论坛</title>
    <link rel="stylesheet" href="/luntan/public/static/static/css/all-df86af5803.css">
    <script>
        function hui(id)
        {

            var sid = 'huifu'+id;
            document.getElementById(sid).style.display='block';
        }
    </script>
</head>
<body class="forum" data-page="forum">
<div class="header">
    <nav class="navbar navbar-inverse navbar-fixed-top navbar-default">
        <div class="container">
            <div class="navbar-header" id="navbar-header">
                <a href="shouye.html" class="navbar-brand">
                    <img src="/luntan/public/static/images/logo.png">
                </a>
            </div>
            <div id="main-nav-menu">
                <ul class="nav navbar-nav">
                    <li>
                        <a href="/luntan/public/index.php/index/index/shouye">
                            <i class="fa fa-home"></i>
                            <span class="hidden-xs hidden-sm">首页</span>
                        </a>
                    </li>
                    <li class="hidden-sm hidden-xs active">
                        <a href="/luntan/public/index.php/index/index/thread.html">
                            <i class="fa fa-comments-o"></i>话题
                        </a>
                    </li>
                </ul>
            </div>
            <ul class="nav navbar-nav navbar-right">
                <li class="nav-search hidden-xs hidden-sm">
                    <form method="GET" action="/luntan/public/index.php/index/index/post.html" accept-charset="UTF-8" class="navbar-form form-search active" target="_blank">
                        <div class="form-group">
                            <input placeholder="搜索" class="form-control" name="title" type="text">
                            <input type="submit" value="搜索">
                        </div>
                        <i class="fa fa-search"></i>
                    </form>
                </li>
                {if condition="$user"}
                <li id="signup-btn1"><a href="/luntan/public/index.php/index/index/my">{$user}</a></li>
                <li id="login-btn1"><a href="/luntan/public/index.php/index/index/tuichu">退出</a></li>
                {else}
                <li><a href="/luntan/public/index.php/index/index/zhuce.html" id="signup-btn">注册</a></li>
                <li><a href="/luntan/public/index.php/index/index/denglu.html" id="login-btn">登录</a></li>
                {/if}
            </ul>
        </div>
    </nav>
</div>
<div id="main" class="main-container container">
    <div class="row max-width">
        <div class="col-xs-12">
            <ul class="breadcrumb">
                <li>
                    <a href="/luntan/public/index.php/index/index/shouye">首页</a>
                </li>
                <li>
                    <a href="/luntan/public/index.php/index/index/thread.html">
                        <span>站务与公告</span>
                    </a>
                </li>
                <li>
                    <strong>论坛</strong>
                </li>
            </ul>
        </div>
    </div>
    <div class="col-md-9 threads-show main-col">
        <!-- Thread Detial -->
        <div class="thread panel panel-default">
            <div class="infos panel-heading">
                <div class="pull-right avatar">
                    <a href="/luntan/public/index.php/index/index/my">
                        <img src="/luntan/public/static/images/avatar.jpg" class="media-object img-thumbnail avatar-64"/>
                    </a>
                </div>
                <h1 class="panel-title thread-title">{$xiangqing['title']}</h1>
                <div class="likes">
                    <a href="/luntan/public/index.php/index/replyl/dianzan?tid={$xiangqing['id']}" data-action="like" data-type="Thread" data-url="#" title="赞"
                       class="fa fa-chevron-up likeable like" data-id="10"> {$zanshu}</a>
                    <a href="/luntan/public/index.php/index/replyl/quxiao?tid={$xiangqing['id']}" data-action="unlike" data-type="Thread" data-url="#" title="踩" class="fa fa-chevron-down likeable like" data-id="10"></a>
                </div>
                <div class="meta inline-block">
                    <a href="/luntan/public/index.php/index/index/tag.html" class="remove-padding-left"> 作者 </a> •
                    <a href="/luntan/public/index.php/index/index/my.html">  </a>{$xiangqing['user_id']}• 于
                    <abbr title="2016-06-10 02:28:36" class="timeago">{$xiangqing['create_at']}</abbr> •
                    创建
                    <a href="/luntan/public/index.php/index/index/my.html"> </a>
                    <abbr title="2017-02-08 21:47:25" class="timeago"></abbr>
                    •{$yuedutime} 阅读
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="panel-body content-body">
                <div class="markdown-body" id="emojify">
                    <ul>
                        <li>{$xiangqing['content']}</li>
                    </ul>
                </div>
            </div>
            <div class="panel-footer operate">
                <div class="pull-left" style="font-size:15px;">
                    <a class="" href="http://service.weibo.com/share/share.php?url=http%3A%2F%2Fimooc.com%2Fthread%2F10&type=3&pic=&title=imooc 接下来需要完善的功能" target="_blank" title="分享到微博">
                        <i class="fa fa-weibo">
                        </i>
                    </a>
                    <a href="https://twitter.com/intent/tweet?url=http%3A%2F%2Fimooc.com%2Fthread%2F10&text=imooc 接下来需要完善的功能&via=imooc.com" class="" target="_blank" title="分享到 Twitter">
                        <i class="fa fa-twitter">
                        </i>
                    </a>
                    <a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fimooc.com%2Fthread%2F10" class="" target="_blank" title="分享到 Facebook">
                        <i class="fa fa-facebook">
                        </i>
                    </a>
                    <a href="https://plus.google.com/share?url=http%3A%2F%2Fimooc.com%2Fthread%2F10" class="" target="_blank" title="分享到 Google Plus">
                        <i class="fa fa-google-plus">
                        </i>
                    </a>
                </div>
                <div class="pull-right">
                    <span class="tag-list hidden-xs">Tags:
                        <a href="/luntan/public/index.php/index/index/tag.html">
                            <span class="tag">{$biaoqian}</span>
                        </a>
                    </span>
                </div>
                <div class="clearfix"></div>
            </div>

            <div class="modal fade" id="exampleModal" tabindex="-1" role="" aria-labelledby="exampleModalLabel">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                            <h4 class="modal-title" id="exampleModalLabel">备注内容</h4>
                        </div>

                        <form method="POST" action="thread.html/append" accept-charset="UTF-8">
                            <input name="_token" type="hidden" value="BAnCy9yzQxp30BiIkeU58OMjR5uWeDM9dCSMNwKH">
                            <div class="modal-body">
                                <div class="alert alert-warning">
                                    附加备注, 使用此功能的话, 会给所有参加过讨论的人发送通知.
                                </div>
                                <div class="form-group">
                                    <textarea class="form-control" style="min-height:20px" placeholder="请使用Markdown撰写内容" name="content" cols="50" rows="10">

                                    </textarea>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>

                        </form>

                    </div>
                </div>
            </div>
        </div>
        <!-- Reply List -->
        <div class="replies panel panel-default list-panel replies-index">
            <div class="panel-heading">
                <div class="total">回复总数: <b>{$tie_reply_sum}</b></div>
            </div>
            <div class="panel-body">
                <ul class="list-group row">
                    {foreach  $replybiao as $reply }
                    <li class="list-group-item media " id="reply11">
                        <div class="avatar pull-left">
                            <a href="my.html">
                                <img class="media-object img-thumbnail avatar" alt="strdemo" src="/luntan/public/static/images/avatar_small.jpg" style="width:48px;height:48px;"/>
                            </a>
                        </div>
                        <div class="infos">
                            <div class="media-heading meta">
                                <a href="/luntan/public/index.php/index/index/my.html" title="strdemo" class="remove-padding-left author">{$reply['user_id']} </a>
                                <abbr class="timeago" title="2016-06-14 21:19:02">回复时间{$reply['create_at']}</abbr>
                                <a name="reply1" class="anchor" href="#reply1" aria-hidden="true">回复给@{$reply['reply_id']}</a>
                                <span class="opts pull-right">
                                    <span class="hideable">
                                        <a class="fa fa-reply btn-reply2reply" data-floor=1 data-username="strdemo" href="#" title="回复 strdemo">
                                        </a>
                                    </span>
                                    <a class="likeable fa fa-thumbs-o-up" data-action="like" data-url="###/like" data-type="Reply" data-id="11"
                                       data-count="0" href="javascript:void(0);" title="赞">
                                    </a>
                                </span>
                            </div>
                            <div class="media-body markdown-reply content-body">
                                <p>{$reply['content']}</p>

                                <button type="button" onclick=" hui({$reply['id']});">回复</button>
                                <div id="huifu{$reply['id']}" style="display: none" >
                                    <form name="huifu{$reply['id']}" action="/luntan/public/index.php/index/replyl/reply" method="post">
                                        <input type="text" name="reply" required><br>
                                        <input type="hidden" name="reply_id" value="{$reply['u_id']}"><br>
                                        <input type="hidden" name="id" value="{$reply['tie_id']}"><br>
                                        <input type="submit" value="提交">
                                    </form>
                                </div>


                            </div>
                        </div>
                    </li>
                    {/foreach}
                </ul>
                <!-- Pager -->
                <div class="pull-right" style="padding-right:20px">
                </div>
            </div>
        </div>
        <!-- Reply Box -->
        <div class="panel panel-default">
            <div class="panel-heading">
                <form name="reply" action="/luntan/public/index.php/index/replyl/reply" method="post">
                    <input type="hidden" value="{$xiangqing['id']}" name="id">
                    <textarea name="reply" cols="130" rows="10" required>

                    </textarea>
                    <input type="submit" value="回复">
                </form>
            </div>
            <div class="panel-body">
                <div class="reply-box form">
                    {if  condition="$user===null"}
                    <div style="padding:20px;">需要
                        <a class="btn btn-success" href="/luntan/public/index.php/index/index/denglu.html">登录</a> 后方可回复, 如果你还没有账号请点击这里
                        <a class="btn btn-primary" href="/luntan/public/index.php/index/index/zhuce.html">注册1</a>。
                    </div>
                    {/if}
                </div>
            </div>
        </div>
    </div>

    <div class="col-md-3 side-bar">
        <div class="panel panel-default corner-radius">
            <div class="panel-heading">
                <h3 class="panel-title">BBS</h3>
            </div>
            {if  condition="$user!==null"}

            <div class="panel-body text-center">
            <a href="/luntan/public/index.php/index/index/fatie.html" class="btn btn-primary">
                <i class="fa fa-user"> </i> 发帖 </a>
            </div>

            {else}

            <div class="panel-body text-center">
                <a href="/luntan/public/index.php/index/index/zhuce.html" class="btn btn-primary">
                    <i class="fa fa-user"> </i> 注册 </a>
            </div>
            <div class="panel-footer text-center">
                已注册用户请 <a href="/luntan/public/index.php/index/index/denglu.html">登录</a>
            </div>
            {/if}

        </div>
        <div class="panel panel-default corner-radius">
            <div class="panel-heading">
                <h3 class="panel-title">热门标签</h3>
            </div>
            <div class="panel-body">
                <div class="badge badge-tag-cloud">
                    <a href="/luntan/public/index.php/index/index/tag.html">{$hot_tag_name}</a>
                    ({$hot_tag_tiaoshu})
                </div>
            </div>
        </div>
        <div class="panel panel-default corner-radius">
            <div class="panel-heading">
                <h3 class="panel-title">小贴士</h3>
            </div>
            <div class="panel-body">
                猪有猪的思想，人有人的思想。如果猪有人的思想，那它就不是猪了——是八戒!
            </div>
        </div>
        <div class="panel panel-default corner-radius">
            <div class="panel-heading">
                <h3 class="panel-title">统计信息</h3>
            </div>
            <ul class="list-group">
                <li class="list-group-item">社区会员:{$usersum}</li>
                <li class="list-group-item">社区发帖数:{$tiezisum}</li>
                <li class="list-group-item">主题数: {$tagsum}</li>
                <li class="list-group-item">回帖数: {$replysum}</li>
            </ul>
        </div>

    </div>
    <div class="clearfix"></div>

</div>

<footer class="footer">
    <div class="container">
        <div class="copyright">
            <blockquote class="pull-left">
                <p>慕课论坛</p>
                <p>Copyright &copy; 2015-2016
                    <a href="/luntan/public/index.php/index/index/shouye">imooc</a> 1.0.0-rc2
                    <span class="pipe">|</span>
                    <span class="pipe">|</span>
                </p>
            </blockquote>
        </div>
        <div class="pull-right hidden-sm hidden-xs">
            <p>
                <a href="###">关于我们</a>
                <span class="pipe">|</span> <a href="###">联系我们</a>
                <span class="pipe">|</span> <a href="###">常见问题解答</a>
            </p>
            <p>
                <a href="shouye.html" target="_blank">
                    <img src="/luntan/public/static/images/imooc-logo.png" border="0" height="40" data-toggle="tooltip" data-placement="top" title="Powered by imooc"/>
                </a>
            </p>
        </div>
    </div>
</footer>
</body>
</html>
